//
//  TTPayHintViewCell.m
//  TaoTuo
//
//  Created by admin on 2020/1/9.
//  Copyright © 2020 admin. All rights reserved.
//

#import "TTPayHintViewCell.h"

@implementation TTPayHintViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.backgroundColor = [UIColor whiteColor];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        UIButton *btn = [UIButton createButtonWithTitle:@"上传支付凭证" titleColor:[UIColor whiteColor] titleFont:[UIFont systemFontOfSize:15] backgroundColor:kMainColor cornerRadius:15 target:self action:@selector(uploadImagesAction)];
        btn.contentEdgeInsets = UIEdgeInsetsMake(8, 15, 8, 15);
        [self.contentView addSubview:btn];
        
        [btn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self.contentView);
        }];
        
        
        
    }
    return self;
}

///去上传图片
- (void)uploadImagesAction
{
    if ([self.delegate respondsToSelector:@selector(gotoUploadPayImages:)]) {
        [self.delegate gotoUploadPayImages:self];
    }
}

@end
